package com.itheima.zhujie;

import java.lang.annotation.Annotation;
import java.util.Arrays;

public class Test {

    public static void main(String[] args) throws ClassNotFoundException {

        Class<?> clazz = Class.forName("com.itheima.zhujie.BBB");
        Annotation[] declaredAnnotations = clazz.getDeclaredAnnotations();
        System.out.println(Arrays.toString(declaredAnnotations));
        Annotation[] annotations = clazz.getAnnotations();
        System.out.println(Arrays.toString(annotations));


    }
}
